import click
import config
import os
import faceRecognise as fr
import json
import traceback


@click.command()
@click.option('--dir', '-d', type=str)
@click.option('--out', '-o')
@click.option('--strict', '-s', default=config.encodingstrict, type=float)
def saveFaceEncodings(dir: str, out, strict):
    try:
        fr.dumpFaceEncoding(dir, out, strict)

    except Exception as me:
        print("ERR:")
        print('traceback.print_exc(): ', traceback.print_exc())
